/**
 * 
 */
package org.nanhill.commons.pattern.flow;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2007-1-3
 */
public class DefaultActionState extends AbstractState implements ActionState {

	private Action action;

	private State okState;

	private State errorState;

	/**
	 * @param id
	 */
	public DefaultActionState(String id, Action action) {
		this.id = id;
		this.action = action;
	}

	public Action getAction() {
		return action;
	}

	public void setAction(Action action) {
		this.action = action;
	}

	public State getErrorState() {
		return errorState;
	}

	public void setErrorState(State errorState) {
		this.errorState = errorState;
	}

	public State getOkState() {
		return okState;
	}

	public void setOkState(State okState) {
		this.okState = okState;
	}

}
